<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05-鼠标移动</title>
    <style>
        body{
          width: 100%;
          height: 100%;
          position: absolute;
        }
       *{
         cursor: none;
       }
    </style>
    <script src="../js/jquery-3.6.0.js"></script>
    <script>
        $(function () {
          $("body").mousemove(function () {
            let clientX = event.clientX;
            let clientY = event.clientY;
            $("img").css({
              position:"absolute",
              left:(clientX-16)+"px",
              top:(clientY-16)+"px"
            });
          });
        });
    </script>

</head>
<body>
<img src="../image/1.ico" alt="">
</body>
</html>